import requests

# https://so.gushiwen.cn/search.aspx?value=%E6%9D%8E%E7%99%BD&valuej=%E6%9D%8E
# 携带参数的第一种方式
url = 'https://so.gushiwen.cn/search.aspx?value=%E6%9D%8E%E7%99%BD&valuej=%E6%9D%8E'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36',
    'Referer': 'https://www.gushiwen.cn/',
}
# 发起请求
res = requests.get(url, headers=headers)
print(res.text)